﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BOMS.WebUI.Login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>电池在线监测维护系统</title>
<style type="text/css">
html{background:#fff;font:12px/1.5 Tahoma,Helvetica,Arial,'微软雅黑','宋体'}
body{margin:0}
img{border:0}
#fullscreen{vertical-align:middle;}
.loginpage{margin:0 auto}
.loginpage b{width:100%;height:80px;background:url(images/bg.png) repeat-x;display:block}
.loginpage table{margin:auto;clear:both}
.loginpage p{float:left;margin-top:20px;width:100%;text-align:center;font-size:14px}
.logo{float:right;height:65px;margin:30px 0}
.loginbg{float:left;width:100%;height:176px;background:url(images/lbg.jpg) repeat-x;margin-bottom:30px}
.loginbg b{background:url(images/loginbg.jpg) no-repeat center;height:176px;display:block}
.inputcss{width:164px;height:32px;line-height:32px;background:url(images/inputbg.gif) repeat-x;border:solid 1px #999;font-size:9pt;font-family:Verdana,Geneva,sans-serif}
</style>
<script type="text/javascript">
    function winopen() {
        var features = 'resizable=yes,toolbar=no,status=yes,top=0,left=0,scrollbars=yes,titlebar=no,width=' + (screen.availWidth - 10) + ',height=' + (screen.availHeight - 50);
        var winFrame = window.open('Default.aspx', 'winFrame', features);
        if (winFrame == null) {
            alert('全屏显示需设置浏览器允许弹窗，否则无法进入系统!');
        }
        else {
            var obj = window.open('close.htm', '_self');
            obj.opener = window;
            obj.focus();
        }
    }
    function reset() {
        document.getElementById("txtUsername").value = "";
        document.getElementById("txtPassword").value = "";
    }
    function LoadTop() {
        if (window.top != window) {
            window.top.document.location.href = "login.aspx?ReturnUrl=2%Default.aspx";
        }
    }
</script>
</head>
<body onload="LoadTop();">
<form id="form1" runat="server">
<div class="loginpage"><b></b><div class="logo"><img src="images/logo.jpg" width="360" height="65" alt=""/></div>
<div class="loginbg"><b></b></div>
<table width="260" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td width="40" height="50"><img src="images/user.gif" width="30" height="30" alt=""/></td>
    <td width="40" height="50">用户</td>
    <td width="180" height="50">
        <asp:TextBox ID="userName" runat="server" class="inputcss"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="userName" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td height="50"><img src="images/password.gif" width="28" height="32" alt=""/></td>
    <td height="50">密码</td>
    <td height="50">
        <asp:TextBox ID="pwd" runat="server" TextMode="Password" class="inputcss"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwd" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td height="50" colspan="2" align="center"><asp:CheckBox ID="fullscreen" runat="server" Text="全屏" /></td>
    <td height="50"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/login.gif" width="95" height="34" onclick="loginBtn_Click" /></td>
    </tr>
</table>
<p>Copyright © 2012 北京嘉捷恒信能源技术有限公司 All Rights Reserved.</p>
</div>
</form>    
</body>
</html>